import request from '@/router/axios'
import { baseUrl } from '@/config/env'

// 添加学生信息
export function addStudent(data) {
    return request({
        url: baseUrl + '/pc/per-student',
        method: 'post',
        data
    })
}

// 查询学生信息
export function getStudent(data) {
    return request({
        url: baseUrl + '/pc/per-student',
        method: 'get',
        params: data
    })
}

// 更新学生信息
export function updateStudent(data) {
    return request({
        url: baseUrl + '/pc/per-student',
        method: 'put',
        data
    })
}

// 删除学生信息
export function deleteStudent(data) {
    return request({
        url: baseUrl + '/pc/per-student',
        method: 'delete',
        data
    })
}
